package com.cq.hd.order.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单支付记录表
 * </p>
 *
 * @author mYunYu
 * @since 2024-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_order_pay_record")
@ApiModel(value="TbOrderPayRecordPo对象", description="订单支付记录表")
public class TbOrderPayRecordPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单id")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty(value = "请求日期")
    @TableField("req_date")
    private String reqDate;

    @ApiModelProperty(value = "请求流水号")
    @TableField("req_seq_id")
    private String reqSeqId;

    @ApiModelProperty(value = "交易金额")
    @TableField("trade_amt")
    private BigDecimal tradeAmt;

    @ApiModelProperty(value = "交易状态：1-待支付，2-支付成功，3-支付失败，4-退款中，5-退款成功，6-退款失败")
    @TableField("trade_state")
    private Integer tradeState;

    @ApiModelProperty(value = "退款请求日期")
    @TableField("refund_req_date")
    private String refundReqDate;

    @ApiModelProperty(value = "退款请求流水号")
    @TableField("refund_req_seq_id")
    private String refundReqSeqId;

    @ApiModelProperty(value = "退款金额")
    @TableField("refund_amt")
    private BigDecimal refundAmt;

    @ApiModelProperty(value = "支付失败原因")
    @TableField("pay_fail_reason")
    private String payFailReason;

    @ApiModelProperty(value = "退款失败原因")
    @TableField("refund_fail_reason")
    private String refundFailReason;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "删除状态:0-正常，1-已删除")
    @TableField("del_state")
    private Integer delState;


}
